package com.homedo.microservice.open.service.gateway.manager.web.api;

import com.homedo.common.bean.data.RequestData;
import com.homedo.common.bean.data.ResponseData;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteVersionAddAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteVersionPageAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteVersionUpdateAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.RouteVersionAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.RouteVersionPageAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.constant.RemoteService4OpenServiceGatewayManagerWebServiceConstant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(RemoteService4OpenServiceGatewayManagerWebServiceConstant.SERVICE_ID + "/routeVersion")
public interface IRouteVersionServiceRemote {

    @GetMapping(value = "list")
    ResponseData<RouteVersionPageAResp> list(RouteVersionPageAReq routeVersionPageAReq);

    @GetMapping(value = "detail/{id}")
    ResponseData<RouteVersionAResp> detail(String id);
    
    @PostMapping(value = "update")
    ResponseData update(RequestData<RouteVersionUpdateAReq> requestData);

    @PostMapping(value = "add")
    ResponseData<RouteVersionAResp> add(RequestData<RouteVersionAddAReq> requestData);

    @GetMapping(value = "delete/{id}")
    ResponseData delete(String id);

}
